#ifndef FIREBALL_HPP_INCLUDED
#define FIREBALL_HPP_INCLUDED

#define HAUTSPRITEFIREBALL 16
#define LARGSPRITEFIREBALL 16

class FireBall{
    public:
    FireBall(float x,float y,sf::Image &image);
    ~FireBall();

    sf::Sprite &getSprite();
    sf::FloatRect getPositionObj();

    void moveFireBall();

    private:

    sf::Sprite sprite;
    sf::Vector2f initPos;
    sf::IntRect tabPosition[2];
    sf::Clock timeSprite;
    sf::Clock timeMove;

    int numSpriteFireBall;
    //time_t tempsPrecedent;

    double calcVitesseX();
    double calcVitesseY();

    double vitesse;
	double angle;
    double vx;
    double vy;
    //time_t t0;
};


#endif // FIREBALL_HPP_INCLUDED
